package com.rundow.common.sdk.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

@Component
public  class EventSender {
    @Autowired
    private ApplicationContext applicationContext;
    public void sendSpringEvent(ApplicationEvent event){
        applicationContext.publishEvent(event);
    }
}
